﻿using System;
using System.Windows.Forms;

namespace Eagleshoes.PackingBarcode.Shipping
{
    public partial class DeliveryCartonForm : Form
    {
        public DeliveryCartonForm()
        {
            InitializeComponent();
        }

      

        private void DeliveryCartonForm_KeyUp(object sender, KeyEventArgs e)
        {
            switch(e.KeyCode)
            {
                    case Keys.F1:
                    var ds = new DeliveryScanForm();
                    ds.ShowDialog();
                    break;
                case Keys.F2:
                    var du = new DeliveryUploadForm();
                    du.ShowDialog();
                    break;
                case Keys.Escape:
                    Close();
                    break;
                default:
                    break;
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            var f = new DeliveryUploadForm();
            f.ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var f = new DeliveryScanForm();
            f.ShowDialog();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}